package com.zzsong.abstract_factory.impl;

import com.zzsong.abstract_factory.CPU;
import com.zzsong.abstract_factory.ComputerFactory;
import com.zzsong.abstract_factory.MainBoard;
import com.zzsong.abstract_factory.RAM;
import com.zzsong.abstract_factory.product.ASUSMainBoard;
import com.zzsong.abstract_factory.product.I5CPU;
import com.zzsong.abstract_factory.product.KingStoneRAM;

public class Computer2 extends ComputerFactory {
    @Override
    public CPU createCPU() {
        return new I5CPU();
    }

    @Override
    public MainBoard createMainBoard() {
        return new ASUSMainBoard();
    }

    @Override
    public RAM createRAM() {
        return new KingStoneRAM();
    }
}
